package com.mworld.galaxy.bull.web.product;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.mworld.galaxy.bull.entity.IdEntity;

/**
 * 此类是为了调试静态页面、防止JPA报错而临时创建的，最终动态联调时应改为entity包下的Product类。
 * @author leo
 */
//@Entity
//@Table(name = "t_product")
//@JsonAutoDetect(getterVisibility = Visibility.PUBLIC_ONLY)
//public class Product extends IdEntity {
public class Product {
	private Long id;
	private String brand;
	private String name;
	private String description;
	private Float price;
	private String mainImage;
	private List<String> images; // 图片id

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getMainImage() {
		return mainImage;
	}

	public void setMainImage(String mainImage) {
		this.mainImage = mainImage;
	}

	public List<String> getImages() {
		return images;
	}

	public void setImages(List<String> images) {
		this.images = images;
	}
}
